<?php

class ImportType
{
    const C_INCLUDE = 'include';
    const C_INCLUDE_ONCE = 'include_once';
    const C_REQUIRE = 'require';
    const C_REQUIRE_ONCE = 'require_once';
    
    static public function Defines($const)
    {
        $cls = new ReflectionClass(__CLASS__);
        foreach($cls->getConstants() as $key=>$value)
        {
            if($value == $const)
            {
                return true;
            }
        }
        
        return false;
    }    
}

?>
